package com.cheng.example.book.advise151.chap6.client83.v1;

public class Client {

    public void describe(int s) {
        // s变量不能超越边界，校验条件
        if (s >= 0 && s < 4) {
            switch (s) {
                case Season.SPRING:
                    System.out.println("this is spring");
                    break;
                case Season.SUMMER:
                    System.out.println("this is summer");
                    break;
            }
        }
    }

}
